package cn.wolfcode.shop.cloud.redis;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class MemberKeyPrefix implements KeyPrefix {
    private int expireTime;
    private String keyPrefix;

    public MemberKeyPrefix(int expireTime, String keyPrefix) {
        this.expireTime = expireTime;
        this.keyPrefix = keyPrefix;
    }

    public static  final MemberKeyPrefix USER_TOKEN = new MemberKeyPrefix(1800,"usertoken:");
}
